URL: http://www.nomedoseusite.com.br/api_products_others.php?action=filter1
Header Parameter | Format |
Usuario1 | base64_encode() |
Senha1 | base64_encode() |
PHP Sample:
// sample filter1 list $url = $domain_url . '/api_products_others.php?usuario1='.$usuario1.'&senha1='.$senha1.'&action=filter1'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') ); $result = curl_exec($ch); curl_close($ch); print_r($result); // sample filter1 list eof
Return:
id
text
URL: http://www.nomedoseusite.com.br/api_products_others.php?usuario1=USUARIO&senha1=SENHA&action=filter2
PHP Sample:
// sample filter2 list $url = $domain_url . '/api_products_others.php?usuario1='.$usuario1.'&senha1='.$senha1.'&action=filter2'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') ); $result = curl_exec($ch); curl_close($ch); print_r($result); // sample filter2 list eof
Return:
id
text
URL: http://www.nomedoseusite.com.br/api_products_others.php?usuario1=USUARIO&senha1=SENHA&action=filter3
PHP Sample:
// sample filter3 list $url = $domain_url . '/api_products_others.php?usuario1='.$usuario1.'&senha1='.$senha1.'&action=filter3'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') ); $result = curl_exec($ch); curl_close($ch); print_r($result); // sample filter3 list eof
Return:
id
text
URL: http://www.nomedoseusite.com.br/api_products_others.php?action=filter4
PHP Sample:
// sample filter4 list $url = $domain_url . '/api_products_others.php?action=filter4'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', "Cache-Control: no-cache", 'Usuario1: ' . base64_encode($usuario1), 'Senha1: ' . base64_encode($senha1)) ); $result = curl_exec($ch); curl_close($ch); print_r($result); // sample filter4 list eof
Return:
id
text